﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class TheLoaiBUS
    {
        public static TheLoaiDTO GetByID(int id)
        {
            TheLoaiDAO tlDAO = new TheLoaiDAO();
            return tlDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            TheLoaiDAO tlDAO = new TheLoaiDAO();
            return tlDAO.GetAll();
        }

        public static void Insert(TheLoaiDTO TheLoai)
        {
            TheLoaiDAO tlDAO = new TheLoaiDAO();
            tlDAO.Insert(TheLoai);
        }

        public static void Update(TheLoaiDTO TheLoai)
        {
            TheLoaiDAO tlDAO = new TheLoaiDAO();
            tlDAO.Update(TheLoai);
        }

        public static void Delete(int id)
        {
            TheLoaiDAO tlDAO = new TheLoaiDAO();
            tlDAO.Delete(id);
        }
    }
}
